<html>
<head>
    <title>DataViz</title>
    <style type="text/css">
        #viz {
            width: 900px;
            height: 700px;
        }
    </style>
    <script src="../dist/neovis.js"></script>
</head>
<script>
	function draw() {
		var config = {
			containerId: "viz",
			neo4j: {
				serverUrl: "bolt://54.88.38.186:32889",
				serverUser: "neo4j",
				serverPassword: "change-guest-honks"
			},
			labels: {
				Troll: {
					label: "user_key",
					value: "pagerank",
					group: "community"
				}
			},
			relationships: {
				"RETWEETS": {
					label: false,
					value: "count"
				}
			},
			initialCypher: "MATCH p=(:Troll)-[:RETWEETS]->(:Troll) RETURN p"
		}

		var viz = new NeoVis.default(config);
		viz.render();
	}
</script>
<body onload="draw()">
<div id="viz"></div>
</body>
</html>